PATHMac OS 8 and 9 Developer Documentation > Interapplication Communication > AppleScript for Scripters >

AppleScript Language Guide

   

Class

A value of class Class is a class identifier. A class identifier is a reserved word that specifies the class to which an object or value belongs. The Class property of an object contains a class identifier value.

LITERAL EXPRESSIONS
string
integer
real
boolean
class
PROPERTY
Class
The class identifier for the object. This property is read-only, and its value is always class .
ELEMENTS

None

OPERATORS

The operators that take class identifier values as operands are & , = , , and As.

The operator As takes a value of one class and coerces it to a value of a class specified by a class identifier. For example, the following statement coerces a string into the corresponding real number, 1.5 :

"1.5" as real --result: 1.5

For more information about coercing values, see Expressions.

COERCIONS SUPPORTED

AppleScript supports coercion of a class identifier to a single-item list.


© 1999 Apple Computer, Inc. – (Last Updated 21 May 99)